﻿using Ndns.ServerHost.Abstractions;
using System.Collections.Generic;
using Ndns.Packet.Abstractions;

namespace Ndns.ServerHost
{
    class DnsRequestImpl : DnsRequest
    {

        public DnsRequestImpl()
        {
            Queries = new List<DnsQuery>(1);
        }

        private DnsContext _context;
        internal void SetContext(DnsContext context)
        {
            _context = context;
        }

        public override DnsContext DnsContext => _context;

        public override bool RecursionDesired { get; set; }
        public override bool AcceptNonAuthenticatedData { get; set; }
        public override DnsOpCode OperationCode { get; set; }

        public override IList<DnsQuery> Queries { get; }
    }
}
